import requests
from lxml import etree

def main(start,end):
    arr = []
    url = 'https://datachart.500.com/ssq/history/newinc/history.php?start=%d&end=%d' % (start,end)
    info = requests.get(url)
    info_xp = etree.HTML(info.text)
    for tr in info_xp.xpath('//tbody[@id="tdata"]/tr') :
        arr.append(tr.xpath('./td[position()<=8]/text()'))




if __name__ =="__main__" :
    start,end = 17129 ,21094
    main(start,end)